import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;

public class HealthInformationGUI extends JPanel{
    /**
     * This GUI holds the Health Information. It holds the Pharmacy, insurance carrier, allergies. It will show a particular patient's 
     * information. This one allows that information to be edited. I need to make it secure so that only doctors and nurses can edit it. 
     * AKA: If there is a patient viewing, they can only view, not edit. 
     */
    private static final long serialVersionUID = 1L;
    
    public HealthInformationGUI() {
        setLayout(new BorderLayout(0, 0));
        
        JPanel panel = new JPanel();
        add(panel, BorderLayout.NORTH);
        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
        
        JLabel lblHealthInformation = new JLabel("Health Information");
        panel.add(lblHealthInformation);
        
        JPanel panel_1 = new JPanel();
        add(panel_1, BorderLayout.WEST);
        GridBagLayout gbl_panel_1 = new GridBagLayout();
        gbl_panel_1.columnWidths = new int[]{61, 0};
        gbl_panel_1.rowHeights = new int[]{16, 0, 0, 0, 0, 0, 0};
        gbl_panel_1.columnWeights = new double[]{0.0, Double.MIN_VALUE};
        gbl_panel_1.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
        panel_1.setLayout(gbl_panel_1);
        
        JLabel lblNewLabel = new JLabel("Pharmacy");
        GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
        gbc_lblNewLabel.insets = new Insets(0, 0, 5, 0);
        gbc_lblNewLabel.anchor = GridBagConstraints.NORTHWEST;
        gbc_lblNewLabel.gridx = 0;
        gbc_lblNewLabel.gridy = 1;
        panel_1.add(lblNewLabel, gbc_lblNewLabel);
        
        JLabel lblInsuranceCarrier = new JLabel("Insurance Carrier");
        GridBagConstraints gbc_lblInsuranceCarrier = new GridBagConstraints();
        gbc_lblInsuranceCarrier.insets = new Insets(0, 0, 5, 0);
        gbc_lblInsuranceCarrier.gridx = 0;
        gbc_lblInsuranceCarrier.gridy = 3;
        panel_1.add(lblInsuranceCarrier, gbc_lblInsuranceCarrier);
        
        JLabel lblAllergies = new JLabel("Allergies");
        GridBagConstraints gbc_lblAllergies = new GridBagConstraints();
        gbc_lblAllergies.gridx = 0;
        gbc_lblAllergies.gridy = 5;
        panel_1.add(lblAllergies, gbc_lblAllergies);
        
        JPanel panel_2 = new JPanel();
        add(panel_2, BorderLayout.CENTER);
        GridBagLayout gbl_panel_2 = new GridBagLayout();
        gbl_panel_2.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};
        gbl_panel_2.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0};
        gbl_panel_2.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
        gbl_panel_2.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
        panel_2.setLayout(gbl_panel_2);
        
        JLabel lblEmpty = new JLabel("Empty");
        GridBagConstraints gbc_lblEmpty = new GridBagConstraints();
        gbc_lblEmpty.insets = new Insets(0, 0, 5, 5);
        gbc_lblEmpty.gridx = 1;
        gbc_lblEmpty.gridy = 1;
        panel_2.add(lblEmpty, gbc_lblEmpty);
        
        JButton btnEditPharmacy = new JButton("Edit Pharmacy");
        GridBagConstraints gbc_btnEditPharmacy = new GridBagConstraints();
        gbc_btnEditPharmacy.insets = new Insets(0, 0, 5, 5);
        gbc_btnEditPharmacy.gridx = 6;
        gbc_btnEditPharmacy.gridy = 1;
        panel_2.add(btnEditPharmacy, gbc_btnEditPharmacy);
        
        JLabel lblEmpty_1 = new JLabel("Empty");
        GridBagConstraints gbc_lblEmpty_1 = new GridBagConstraints();
        gbc_lblEmpty_1.insets = new Insets(0, 0, 5, 5);
        gbc_lblEmpty_1.gridx = 1;
        gbc_lblEmpty_1.gridy = 3;
        panel_2.add(lblEmpty_1, gbc_lblEmpty_1);
        
        JButton btnEditInsurance = new JButton("Edit Insurance");
        GridBagConstraints gbc_btnEditInsurance = new GridBagConstraints();
        gbc_btnEditInsurance.insets = new Insets(0, 0, 5, 5);
        gbc_btnEditInsurance.gridx = 6;
        gbc_btnEditInsurance.gridy = 3;
        panel_2.add(btnEditInsurance, gbc_btnEditInsurance);
        
        JLabel lblEmpty_2 = new JLabel("Empty");
        GridBagConstraints gbc_lblEmpty_2 = new GridBagConstraints();
        gbc_lblEmpty_2.insets = new Insets(0, 0, 0, 5);
        gbc_lblEmpty_2.gridx = 1;
        gbc_lblEmpty_2.gridy = 5;
        panel_2.add(lblEmpty_2, gbc_lblEmpty_2);
        
        JButton btnEditAllergies = new JButton("Edit Allergies");
        GridBagConstraints gbc_btnEditAllergies = new GridBagConstraints();
        gbc_btnEditAllergies.insets = new Insets(0, 0, 0, 5);
        gbc_btnEditAllergies.gridx = 6;
        gbc_btnEditAllergies.gridy = 5;
        panel_2.add(btnEditAllergies, gbc_btnEditAllergies);
        
        JPanel panel_3 = new JPanel();
        add(panel_3, BorderLayout.SOUTH);
        
        JButton btnMedicalInformation = new JButton("Medical Information");
        panel_3.add(btnMedicalInformation);
        
        JButton btnBack = new JButton("Back");
        panel_3.add(btnBack);
    }

}
